package com.jumi.microservice.warehousein.mapper;

import com.jumi.microservice.warehousein.domain.JmWarehouseIn;
import com.jumi.microservice.warehousein.dto.JmWarehouseInRequest;
import com.jumi.microservice.warehousein.dto.JmWarehouseInResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author ssk
 * @create 2020/8/11 15:25
 **/
public interface JmWarehouseInMapper {

    int save(JmWarehouseIn warehouseIn);

    int update(JmWarehouseIn warehouseIn);

    JmWarehouseInResponse findById(Long inId);

    List<JmWarehouseInResponse> findAll(JmWarehouseInRequest warehouseIn);

    int auditBatch(Map<String, Object> params);

    int updatePurchaseCode(Map<String,Object> params);

    Long[] findByPurchaseCodes(@Param("purchaseCodes") String[] purchaseCodes);

    String[] findAllPurchaseCodes();



}
